package com.qf.kdgroup.gdbackend.mapper;

import com.qf.kdgroup.gdbackend.entity.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    int deleteByPrimaryKey(Long userid);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long userid);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> findByUsername(String username);

    List<User> findAll(String keyword);

    User selectByRoleId(Long roleid);
}